package cn.redragon.soa.model.dto.stock;

import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

@Getter
@Setter
@ToString(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class StockReservedDTO extends ProductDTO {

    @NotNull
    @Positive
    private Long qty;

    /**
     * Do not copy this property if this bean is quoted out of loyalty-stock
     */
    @JsonIgnore
    private String remarks;
}
